import { createApp } from 'vue'
import App from './App.vue'
import router from "@/router"
import "@/assets/icon/iconfont.css"
import * as echarts from "echarts"
import element from 'element-plus'
import ElementPlus from 'element-plus';
import {ElMessage} from 'element-plus'
import 'element-plus/theme-chalk/el-message.css';
import * as ElIconModules from '@element-plus/icons-vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//const pathUrl='http://localhost:80'
const pathUrl='http://43.139.142.79:8899'
export default pathUrl
const app=createApp(App)
app.use(router)
app.use(echarts)
app.use(element)
app.use(ElementPlus)
app.provide('$message', ElMessage)
Object.keys(ElIconModules).forEach(function (key) {
    app.component(ElIconModules[key].name, ElIconModules[key])
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')



